﻿<span style="font-size:14px; color:Green">
@if (HttpContext.Current.User.Identity.IsAuthenticated)
{
    if (HttpContext.Current.User.IsInRole("adminshop"))
    {
    <text>Welcome <strong>@User.Identity.Name</strong>!
     |  @Html.ActionLink("Log Off", "LogOff", "Account") 
     |  @Html.ActionLink("Manager", "Index","Adminshop") 
     </text> 
    }
     if (HttpContext.Current.User.IsInRole("admin"))
    {
    <text>Welcome <strong>@User.Identity.Name</strong>!
     |  @Html.ActionLink("Log Off", "LogOff", "Account") 
     |  @Html.ActionLink("Admin", "Index","Admin") 
     </text> 
    }

     if (HttpContext.Current.User.IsInRole("member"))
     {
        <text>Welcome <strong>@User.Identity.Name</strong>!
     |  @Html.ActionLink("Log Off", "LogOff", "Account") </text>
     }
}
else
{
    @: @Html.ActionLink("Log On", "LogOn", "Account")  | @Html.ActionLink("Đăng ký thành viên", "RegisterMember", "Account")  | @Html.ActionLink("Đăng ký cửa hàng", "Register", "Account")  

}
</span>